package com.weidey.blogWeb.service.Impl;

import com.weidey.blogWeb.domain.WebRating;
import com.weidey.blogWeb.mapper.WebRatingMapper;
import com.weidey.blogWeb.service.IWebRatingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;


/**
 * 文章评分Service业务层处理
 * 
 * @author weidey
 * @date 2024-09-26
 */
@Service
public class WebRatingServiceImpl implements IWebRatingService
{
    @Autowired
    private WebRatingMapper blogRatingMapper;

    /**
     * 查询文章评分
     * 
     * @param id 文章评分主键
     * @return 文章评分
     */
    @Override
    public WebRating selectBlogRatingById(Long id)
    {
        return blogRatingMapper.selectBlogRatingById(id);
    }

    /**
     * 查询文章评分列表
     * 
     * @param blogRating 文章评分
     * @return 文章评分
     */
    @Override
    public List<WebRating> selectBlogRatingList(WebRating blogRating)
    {
        return blogRatingMapper.selectBlogRatingList(blogRating);
    }
}
